<template>
  <div>
    <!-- 二级路由出口 -->
    <transition enter-active-class="animate__animated animate__fadeIn">
      <router-view></router-view>
    </transition>

    <footer>
      <router-link to="/index/home">商城</router-link>
      <router-link to="/index/cate">分类</router-link>
      <router-link to="/index/shop">购物车</router-link>
      <router-link to="/index/mine">我的</router-link>
    </footer>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
footer {
  width: 100vw;
  height: 0.8rem;
  border-top: 0.01rem solid #666;
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;
  background: #fff;
  margin-top: 0.8rem;
}
footer a {
  flex: 1;
  text-align: center;
  line-height: 0.8rem;
}
.router-link-exact-active {
  color: #ff4400;
}
/* .active{
  color: #ff4400;
} */
</style>>
